package com.zxl.strategy;
/**
 * context ��һ��ConcreteStrategy ���� ά����һ��Strategy������
 * @author zxl
 * 2016��6��28��
 */
public class Context {
	Strategy strategy;
	/**
	 * ��ʼ���������Ĳ��Զ���
	 * @param strategy
	 */
	public Context(Strategy strategy){
		this.strategy = strategy;
	}
	/**
	 * ��ݾ���Ĳ��Զ��󣬵������㷨����
	 * 
	 * zxl
	 * 2016��6��28�� ����2:57:57
	 * void
	 */
	public void contextInterface(){
		strategy.algorithmInterface();
	}
}
